package com.design_pattern.decorator;

/**
 * 装饰器模式 对StudentBeauty 进行增强
 */
public class StudentDecorator implements IBeauty{
    private final IBeauty iBeauty;

    public StudentDecorator(IBeauty iBeauty) {
        this.iBeauty = iBeauty;
    }

    @Override
    public int getValue() {
        return iBeauty.getValue()+100;
    }
}
